package com.doone.telmarket.domain;

import java.io.Serializable;

/**
 * 
 * @author 吴同庆
 * @date 2009-9-16
 * @description 增值业务页面对象
 * @package     com.doone.telmarket.domain
 */
public class ServicePage implements Serializable{
	
	private static final long serialVersionUID = -1266241135334595668L;

	//增值业务对象
	private Service service;
	
	//推荐级别
	private Integer recommandGrade;
	
	//内容介绍
	private String serviceContent;
	
	//缩略图
	private SiteResource smallIcon;	
	
	//LOGO
	private SiteResource logo;
	
	//flash
	private SiteResource flash;
		
	//页面
	private SiteResource page;
	
	
	private String pageLogoPath;
	
	private String pageSmallIconPath;
	
	private String pageFlashPath;
	
	private String pageUrl;
	
	public Service getService() {
		return service;
	}

	public void setService(Service service) {
		this.service = service;
	}

	public SiteResource getSmallIcon() {
		return smallIcon;
	}

	public void setSmallIcon(SiteResource smallIcon) {
		this.smallIcon = smallIcon;
	}

	public Integer getRecommandGrade() {
		return recommandGrade;
	}

	public void setRecommandGrade(Integer recommandGrade) {
		this.recommandGrade = recommandGrade;
	}

	public SiteResource getLogo() {
		return logo;
	}

	public void setLogo(SiteResource logo) {
		this.logo = logo;
	}

	public SiteResource getFlash() {
		return flash;
	}

	public void setFlash(SiteResource flash) {
		this.flash = flash;
	}

	public String getServiceContent() {
		return serviceContent;
	}

	public void setServiceContent(String serviceContent) {
		this.serviceContent = serviceContent;
	}

	public SiteResource getPage() {
		return page;
	}

	public void setPage(SiteResource page) {
		this.page = page;
	}

	public ServicePage(){
		
	}
	
	public ServicePage(Service service,Integer recommandGrade,SiteResource smallIcon,
			SiteResource logo,SiteResource flash,String serviceContent,SiteResource page){
		this.service = service;
		this.recommandGrade = recommandGrade;
		this.smallIcon = smallIcon;
		this.logo = logo;
		this.flash = flash;
		this.serviceContent = serviceContent;
		this.page = page;
		this.pageFlashPath = getFlashPath();
		this.pageSmallIconPath = getSmallIconPath();
		this.pageUrl = getPageUrl();
		this.pageLogoPath = getLogoPath();
	}
	
	public String getSmallIconPath()
	{
		return this.getSmallIcon().getFullPath();
	}
	
	public String getLogoPath(){
		return this.getLogo().getFullPath();
	}
	
	public String getFlashPath()
	{
		return getFlash().getFullPath();
	}
	
	public String getPagePath()
	{
		return getPage().getFullPath();
	}

	public String getPageLogoPath() {
		return pageLogoPath;
	}

	public void setPageLogoPath(String pageLogoPath) {
		this.pageLogoPath = pageLogoPath;
	}

	public String getPageSmallIconPath() {
		return pageSmallIconPath;
	}

	public void setPageSmallIconPath(String pageSmallIconPath) {
		this.pageSmallIconPath = pageSmallIconPath;
	}

	public String getPageFlashPath() {
		return pageFlashPath;
	}

	public void setPageFlashPath(String pageFlashPath) {
		this.pageFlashPath = pageFlashPath;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	
}
